<?php

declare( strict_types = 1 );
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
return [
	'default' => [
		'host' => env( 'AMQP_DEFAULT_HOST', '192.168.147.128' ),
		'port' => (int)env( 'AMQP_DEFAULT_PORT', 5672 ),
		'user' => env( 'AMQP_DEFAULT_USER', 'common' ),
		'password' => env( 'AMQP_DEFAULT_PASSWORD', 'admin5284000' ),
		'vhost' => '/',
		'concurrent' => [
			'limit' => 1000,
		],
		'pool' => [
			'connections' => 10,
		],
		'params' => [
			'insist' => false,
			'login_method' => 'AMQPLAIN',
			'login_response' => null,
			'locale' => 'en_US',
			'connection_timeout' => 3600,
			'read_write_timeout' => 3600,
			'context' => null,
			'keepalive' => true,
			'heartbeat' => 60,
			'close_on_destruct' => false,
			// 多路复用中闲置 Channel 的最大值，超过这个数量后，会关闭多余的限制 Channel
			// 'max_idle_channels' => 10,
		],
	],
];
